import java.util.*;
/**
 * @Author 12629
 * @Description：
 */
class Animal {
    public String name;
    public int age;
    public String color;

    public Animal(String name, int age, String color) {
        this.name = name;
        this.age = age;
        this.color = color;
    }

    public void eat() {
        System.out.println(name +" 正在吃法....");
    }
}
class Dog extends Animal{
    public Dog(String name, int age, String color) {
        super(name,age,color);
    }

    public void bark() {
        System.out.println(name +" 正在汪汪汪叫....");
    }
}
class Bird extends Animal{
    public Bird(String name, int age, String color) {
        super(name,age,color);
    }

    public void fly() {
        System.out.println(name+" 正在飞....");
    }
}

public class Test {
    public static void main(String[] args) {
        Dog dog = new Dog("旺财",2,"黄色");
        Bird bird = new Bird("小鸟",1,"黑色");
        bird.fly();
    }
}
